package com.dhcy.mqtt.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcy.mqtt.model.Device;
import com.dhcy.mqtt.model.DeviceClass;
import com.dhcy.mqtt.model.MqttSetting;
import com.dhcy.mqtt.par.ht.DeviceAddPar;
import com.dhcy.mqtt.par.ht.DeviceListPar;
import com.dhcy.mqtt.result.ht.TableResultData;
import com.dhcy.mqtt.util.AppResultData;


public interface DeviceService extends IService<Device> {

    /**
     * 设备列表
     * @param deviceListPar
     * @return
     */
    TableResultData deviceList(DeviceListPar deviceListPar);

    /**
     * 设备列表
     * @param deviceListPar
     * @return
     */
    AppResultData deviceListSimple(DeviceListPar deviceListPar);

    /**
     * 新增设备
     * @param deviceaddPar
     * @return
     */
    AppResultData deviceAdd(DeviceAddPar deviceaddPar);

    /**
     * 删除设备
     * @param id
     * @return
     */
    AppResultData deviceDel(Integer id);

    /**
     * 设备类型列表
     * @param deviceListPar
     * @return
     */
    TableResultData deviceClassList(DeviceListPar deviceListPar);

    /**
     * 新增设备类型
     * @param deviceaddPar
     * @return
     */
    AppResultData deviceClassAdd(DeviceClass deviceaddPar);

    /**
     * 删除设备类型
     * @param id
     * @return
     */
    AppResultData deviceClassDel(Integer id);

    /**
     * 配置列表
     * @param deviceListPar
     * @return
     */
    TableResultData settingList(DeviceListPar deviceListPar);

    /**
     * 新增配置
     * @param mqttSetting
     * @return
     */
    AppResultData settingAdd(MqttSetting mqttSetting);

    /**
     * 删除配置
     * @param id
     * @return
     */
    AppResultData settingDel(Integer id);



}
